package com.baizhi.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;


import java.util.Date;


@Data
@NoArgsConstructor
@AllArgsConstructor
@ToString
@TableName("dd_user")
public class User {
    @TableId(value = "id",type = IdType.AUTO)
    private int id;
    @TableField("email")
    private String email;
    @TableField("nickname")
    private String nickname;
    @TableField("password")
    private String password;
    @TableField("create_data")
    private Date createData;
    @TableField("state")
    private String  state;
    @TableField("authority")
    private String authority;
    @TableField(exist = false)
    private String code;
    public User(String email, String password) {
        this.email = email;
        this.password = password;
    }
}
